#-*- encoding:UTF-8 -*-

# python读写文件可以参考廖雪峰的文章
# http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/001386820066616a77f826d876b46b9ac34cb5f34374f7a000

# 用户".m2"目录下的"settings.xml"文件路径
user_m2_settings_xml_path = "C:\Users\pactera\.m2\settings.xml"

# Maven安装目录下的"settings.xml"文件位置
maven_install_dir_settings_xml_path = "D:\wxgD\apache-maven-3.3.9\conf\settings.xml"

print "hello,world"
print u"你好！"
print user_m2_settings_xml_path
print maven_install_dir_settings_xml_path

import codecs
with codecs.open(user_m2_settings_xml_path, 'r', 'UTF8') as f:
	for line in f.readlines():
		print(line.strip()) # 把末尾的`\n`删掉

